﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hResume 6 - simple contact</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/operator/content/Microformats/Microformats.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
     
</head>
<body>
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hResume 6 - simple contact</h1>
    <p class="description">This page was design to test a simple contact 
	structure</p>
    <p>From: <a href="default.htm"><span class="format">hResume</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a>
    </p>
    
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    <tbody>
     
        
        <tr class="assert">
            <td class="test">hresume[0].contact.fn</td>
            <td class="result">IsEqualTo("Dr  John  Peter  Doe  MSc,  PHD")</td>
            <td class="comment">Should have honorific prefixs and suffixs</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hresume[0].contact.n.honorific-prefix[0]</td>
            <td class="result">IsEqualTo("Dr")</td>
            <td class="comment">The honorific-prefix is a optional multiple value</td>
        </tr>
        
         <tr class="assert">
            <td class="test">hresume[0].contact.n.given-name[0]</td>
            <td class="result">IsEqualTo("John")</td>
            <td class="comment">The given-name is a optional multiple value</td>
        </tr>

        <tr class="assert">
            <td class="test">hresume[0].contact.n.additional-name[0]</td>
            <td class="result">IsEqualTo("Peter")</td>
            <td class="comment">The additional-name is a optional multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hresume[0].contact.n.family-name[0]</td>
            <td class="result">IsEqualTo("Doe")</td>
            <td class="comment">The family-name is a optional multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hresume[0].contact.n.honorific-suffix[1]</td>
            <td class="result">IsEqualTo("PHD")</td>
            <td class="comment">The honorific-suffix is a optional multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hresume[0].contact.email[0].value</td>
            <td class="result">IsEqualTo("john@example.com")</td>
            <td class="comment">Should collect the email address from href attribute</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hresume[0].contact.url[0]</td>
            <td class="result">IsEqualTo("http://example.com/johndoe/")</td>
            <td class="comment">Should collect the URL from href attribute</td>
        </tr>

        <tr class="assert">
            <td class="test">hresume[0].summary</td>
            <td class="result">IsEqualTo("Interactive designer looking for a job")</td>
            <td class="comment">Should collect the inner text of the first element with a summary class</td>
        </tr>

     </tbody>
    </table> 
    
    
    <p>History:</p>
    <ul>
	    <li class="history vevent">
	        <span class="summary">Created</span>: <abbr class="dtstart" title="2010-02-18">
			18 Febuary 2010</abbr> 
	        <span class="description">by Glenn Jones</span>
	    </li>
	    <li class="history vevent">
	        <span class="summary">Updated</span>: <abbr class="dtstart" title="2008-06-08">19 July 2010</abbr> 
	        <span class="description">by Glenn Jones - Corrected contact url assert</span>
	    </li>

    </ul>
    
    
    
    </div>
  
    <div id="uf">
    	<!-- This may not be the best semantic use of HTML element -->
    
        <div class="hresume">
        
        
        	<div class="contact vcard">
            	<div class="fn n">
		            <span class="honorific-prefix">Dr</span> 
		            <span class="given-name">John</span> 
		            <span class="additional-name">Peter</span> 
		            <span class="family-name">Doe</span> 
		            <span class="honorific-suffix">MSc</span>, 
		            <span class="honorific-suffix">PHD</span>
            	</div>
            	
             	<div class="adr">
                	<span class="type">Home</span>: 
                	<div class="label">
	                    <span class="locality">Brighton</span>, 
	                    <span class="region">East Sussex</span>, 
	                    <span class="country-name">United Kingdom</span>, 
                	</div>
            	</div>
            	
            	<div class="adr">
                	<span class="type">Work</span>: 
                	<div class="label">
	                    <span class="post-office-box">PO Box 46</span>, 
	                    <span class="extended-address">Suite 2</span>,
	                    <span class="street-address">Sunny House</span>, 
	                    <span class="street-address">West Street</span>, 
	                    <span class="locality">Brighton</span>, 
	                    <span class="region">East Sussex</span>, 
	                    <span class="country-name">United Kingdom</span>, 
	                    <span class="postal-code">BN1 3DF</span>
                	</div>
            	</div>
            	
            	<div class="email"><span class="type">Home</span>: <a href="mailto:john@example.com" class="value">notthis@example.com</a></div>
            	<div class="email"><span class="type">Work</span>: <a href="mailto:john2@example.com" class="value">notthis2@example.com</a></div>
            	
            	<div><a href="http://example.com/johndoe/" class="url">Blog</a></div>
            	<div><a href="http://example.com/altjoe/" class="url">Alt Blog</a></div>

	
            </div>
            
            <div class="summary">Interactive designer looking for a job</div>

        

          
            
        </div>
        
        
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>